<%@page import="com.lyf.util.DateUtil"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE html>
<!-- saved from url=(0033)http://192.168.0.77/pms/idea.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="${basePath }/css/bootstrap.min.css">
	
	<!-- <script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script> -->
	<script type="text/javascript" src="${basePath }/js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="${basePath }/js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"></jsp:include>
	
	
	<div class="container">
	  <div class="row">
		
		<jsp:include page="include/side.jsp">
			<jsp:param value="idea" name="tag"/>
		</jsp:include>
		
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="./idea_files/idea.html"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="${basePath }/idea/toNewIdea" class="link-black">发表想法</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;">
				<c:forEach items="${pager.result }" var="idea" varStatus="v">
					<blockquote><!-- ${v.count } -->
					  <h4><a href="${basePath }/idea/toIdeaShow?id=${idea.id }">${idea.i_name }</a></h4>
					  <p style="font-size:14px;line-height:1.5;">${idea.i_describle }</p>
					  <c:set var="time" value="${idea.i_createTime }"></c:set>
					  <%
					  	 String time = (String)pageContext.getAttribute("time");
					   	 time = DateUtil.getAskedTime(time);
					   	 pageContext.setAttribute("time",time);
					  %>
					  <small>${idea.employee.username }发布于 ${time }</small>
					  <a href="${basePath }/idea/toEditIdea?id=${idea.id}" title="编辑"><i class="icon-pencil"></i></a>
					  <a href="${basePath }/idea/delIdea?id=${idea.id}" title="删除"><i class="icon-trash"></i></a>
					</blockquote>
				</c:forEach>
				
				<!-- 分页 -->
				<c:choose>
				<c:when test="${pager.nowPageNum != 1 }">
					<div class="pagination pull-left">
					
					<ul><li><a href="${basePath }/idea/toIdea?p=${pager.nowPageNum - 1}">←Prev</a></li></ul>
					
				    </div>
				</c:when>
				<c:otherwise>
					<div class="pagination pull-left">
					
					<ul><li><a href="javascript:;" title="上一页没有数据">←Prev</a></li></ul>
						
					</div>
					</c:otherwise>
				</c:choose>
				
				<c:choose>
				<c:when test="${pager.nowPageNum != pager.totalPages }">
					<div class="pagination pull-right">
					  
				  	<!-- 
					<li class="active">
					  <a href="http://192.168.0.77/pms/idea.html#">1</a>
					</li>
					 -->
					<ul><li><a href="${basePath }/idea/toIdea?p=${pager.nowPageNum + 1}">Next→</a></li></ul>
					  
					</div>
				</c:when>
				<c:otherwise>
					<div class="pagination pull-right">
					  
					<ul><li><a href="javascript:;" title="下一页没有数据">Next→</a></li></ul>
					   
					</div>
				</c:otherwise>
				</c:choose>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>

</body></html>
